import java.util.*;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-03
 * Time:10:31
 */

class Dog extends Animal{
    String color;
   // @Override
    public Dog(String name,int weight,String color)
    {
        super(name,weight);
        this.color=color;
    }
    public void showinfo() {
        super.showinfo();
        System.out.println("颜色："+color);
    }
    public void move() {
        System.out.println("Dog"+name+" is running!!!");
    }
}


public class Text {
        public static void show(Animal a)
        {
            a.showinfo();
            a.move();
        }

    public static void main(String[] args) {
            Dog fw=new Dog("土狗",22,"黑色");
            show(fw);
    }
}
